home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / var / db / pkg / net-wireless / atmel-firmware-1.3 / atmel-firmware-1.3.ebuild < prev    next >
Text File  |  2005-12-21  |  1KB  |  51 lines

  1. # Copyright 1999-2005 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. # $Header: /var/cvsroot/gentoo-x86/net-wireless/atmel-firmware/atmel-firmware-1.3.ebuild,v 1.3 2005/08/09 18:00:38 dholm Exp $
  4.  
  5. inherit toolchain-funcs
  6.  
  7. DESCRIPTION="Firmware and config for atmel and atmel_cs wlan drivers included in linux 2.6"
  8. HOMEPAGE="http://www.thekelleys.org.uk/atmel/"
  9. SRC_URI="http://www.thekelleys.org.uk/atmel/${P}.tar.gz"
  10. LICENSE="Atmel"
  11. SLOT="0"
  12. KEYWORDS="~amd64 ~ppc ~x86"
  13. IUSE="pcmcia usb"
  14.  
  15. RDEPEND=">=sys-apps/hotplug-20040923
  16.         >=net-wireless/wireless-tools-26-r1
  17.         pcmcia? ( virtual/pcmcia )"
  18.  
  19. src_compile() {
  20.     $(tc-getCC) -o atmel_fwl atmel_fwl.c
  21. }
  22.  
  23. src_install() {
  24.     insinto /lib/firmware
  25.     doins images/*.bin
  26.     if use usb; then
  27.         doins images.usb/*.bin
  28.     fi
  29.  
  30.     if use pcmcia; then
  31.         insinto /etc/pcmcia
  32.         doins atmel.conf
  33.     fi
  34.  
  35.     dosbin atmel_fwl atmel_fwl.pl
  36.     doman atmel_fwl.8
  37.     dodoc README COPYING VERSION
  38. }
  39.  
  40. pkg_postinst() {
  41.     if use pcmcia && [ -f /var/run/cardmgr.pid ]; then
  42.         kill -HUP `cat /var/run/cardmgr.pid`
  43.     fi
  44. }
  45.  
  46. pkg_postrm() {
  47.     if use pcmcia && [ -f /var/run/cardmgr.pid ]; then
  48.         kill -HUP `cat /var/run/cardmgr.pid`
  49.     fi
  50. }
  51.